﻿
// lunwenDlg.h: 头文件
//

#pragma once
#include "People.h"
#include "ClassPeople.h"
#include "Common.h"
#include <vector>
#include <queue>

#define WM_SHOW (WM_USER + 200)

// ClunwenDlg 对话框
class ClunwenDlg : public CDialogEx
{
// 构造
public:
	ClunwenDlg(CWnd* pParent = nullptr);	// 标准构造函数

// 对话框数据
#ifdef AFX_DESIGN_TIME
	enum { IDD = IDD_LUNWEN_DIALOG };
#endif

	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV 支持


// 实现
protected:
	HICON m_hIcon;

	// 生成的消息映射函数
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg LRESULT OnShow(WPARAM wParam, LPARAM lParam);
	DECLARE_MESSAGE_MAP()
public:
	CEdit nian, yue, ri, shi;
	CEdit shu_ju_ji_number, class_count;//数据集的数量+最终的归类数
	CEdit nian_zhu, yue_zhu, ri_zhu, shi_zhu;
	CEdit wu_xing_nian, wu_xing_yue, wu_xing_ri, wu_xing_shi;
	CEdit ba_zi, bei_zhu;
	CEdit mu, huo, tu, jin, shui;
	CListCtrl list;
	static int sjj_number_int;
	static int class_count_int;
	static int show_hang_shu;
	static bool oooook;
	afx_msg void OnBnClickedButton1JianCe();
	afx_msg void OnBnClickedButton2ShuJuJi();
	afx_msg void OnBnClickedButton1Nian();
	afx_msg void OnBnClickedButton2Yue();
	afx_msg void OnBnClickedButton3Ri();
	afx_msg void OnBnClickedButton4Shi();
	CWinThread* hThread;
	static UINT ThreadFenLei(LPVOID pParam);
	static vector<ClassPeople> shujuji;
	static vector<ClassPeople> shujujifuben;
};
